package modelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class DVDTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class DVDTest
{
    private modelLayer.DVD dVD1;

    /**
     * Default constructor for test class DVDTest
     */
    public DVDTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        dVD1 = new modelLayer.DVD("Avengers", 349999994, "Alola", "1-1-1991");
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void testTitle()
    {
        dVD1.setTitle("Avengers");
    }

    @Test
    public void testBarcode()
    {
        assertEquals(349999994, dVD1.getBarcode());
    }

    @Test
    public void testArtist()
    {
        dVD1.setArtist("Alola");
    }

    @Test
    public void testCopy()
    {
    }

    @Test
    public void testAdd()
    {
        dVD1.addCopy(2, 35, "2-4-1992");
    }
}






